|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Else
public class Else
The Else class represents the <else> VXML element. It
contains a list of actions to perform if its parent's and siblings'
conditions are not satisfied. The actions will be written to the VXML
document in the order they are added.
. . .
If ifClause = new If("variable == '45');
Else elseClause = new Else();
ifClause.setElseClause(elseClause);
. . .
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Else()
Creates a new instance of Else with an empty list of
actions. |
|
| Method Summary | |
|---|---|
void |
addAction(Action action)
Adds the action to this else. |
Action[] |
getActions()
Returns the list of actions in this else. |
void |
removeAction(Action action)
Removes the action from this else. |
protected void |
writeActions(org.xml.sax.ContentHandler outputHandler)
Write the actions in this condition to the specified content handler. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this condition to the supplied set. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Else()
Else with an empty list of
actions.
| Method Detail |
|---|
public Action[] getActions()
public void addAction(Action action)
throws java.lang.NullPointerException
action - The action to add.
java.lang.NullPointerException - If the supplied action is null.
public void removeAction(Action action)
throws java.lang.NullPointerException
action - The action to remove.
java.lang.NullPointerException - If the supplied action is null.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
protected void writeActions(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the actions fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||